<?php

namespace App\Http\Controllers\Personnel;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class AssessmentController extends Controller
{
    public function getAssessmentList(Request $request)
    {
        $month = $request->input('month');

        $data = DB::table('akbus_assessment')->where('month', date('Y-m-01', strtotime($month)))->get()->toArray();

        return response()->formatJson($data);
    }
}
